package db

import (
	"github.com/jinzhu/gorm"
	_ "github.com/jinzhu/gorm/dialects/mysql"
)

var DB *gorm.DB

func Init() {
	db, err := gorm.Open("mysql", "root:Liuxd.4719@(39.108.60.51:3306)/netdisk?charset=utf8mb4&parseTime=True&loc=Local")
	if err != nil {
		panic(err)
	}

	DB = db
}
